using System;
using NUnit.Framework;
using DotNetXmlSwfChart;

namespace DotNetXmlSwfChart.UnitTest
{
    [TestFixture]
    public class LiveUpdateFixture
    {
        [Test]
        public void ToSourceXml()
        {
            string testXml =
                "<live_update url='http://google.com' " +
                             "delay='2' " +
                             "fail='False' " +
                             "/>";
            LiveUpdate lu = new LiveUpdate();
            lu.Url = "http://google.com";
            lu.Delay = 2;
            lu.Fail = false;
            Assert.AreEqual(testXml, lu.ToSourceXML());
        }
    }
}
